#import <Foundation/Foundation.h>
#import <sqlite3.h>

@interface DBManager : NSObject{
    sqlite3 *sqliteDataBase;
    NSString *dataBasePath;

}
+(DBManager*)getInstanse;

-(BOOL)createDataBaseWithName:(NSString *)dbName;

-(BOOL)createTable:(NSString *)sqlString;

-(NSMutableArray *)selectFrom:(NSString *)dbName items:(NSArray *)itemArray limits:(NSString *)limitString;

-(BOOL)insertTo:(NSString *)dbName dictionary:(NSDictionary *) insert_dict;

-(BOOL)deleteFrom:(NSString *)dbName limits:(NSString *)limitString;

-(BOOL)updateTable:(NSString *)dbName updateDict:(NSDictionary*)updateDict limits:(NSString *)limitString;

-(BOOL)dropTable:(NSString *)tableName;

-(BOOL)isTableExist:(NSString *)tableName;
@end
